<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage form-control" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Velocity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-velocity" data-rule="required" class="form-control  form-control" rows="5" placeholder='[
    {
        "name":"节点1",
        "url":"192.168.199.199:8080"
    },
    {
        "name":"节点2",
        "url":"192.168.199.199:8080"
    },
    {
        "name":"节点3",
        "url":"192.168.199.199:8080"
    }
]' name="row[velocity]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ping')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ping" data-rule="required" class="form-control form-control" name="row[ping]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Traceroute')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-traceroute" data-rule="required" class="form-control form-control" name="row[traceroute]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dig')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dig" data-rule="required" class="form-control form-control" name="row[dig]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Webpage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-webpage" data-rule="required" class="form-control form-control" name="row[webpage]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Diagnosis')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-diagnosis" data-rule="required" class="form-control  form-control" rows="5" placeholder='{
    "operator":"111.48.26.136",
    "internet":"www.baidu.com"
}' name="row[diagnosis]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Other')}:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea id="c-other" data-rule="required" class="form-control  form-control" rows="5" placeholder='{
                    "telecomService": "103.78.125.193",
                    "unicomService": "220.194.79.73",
                    "moveService": "39.156.66.18",
                    "localSpeedTest": {
                        "name": "内网",
                        "content": "内网测速",
                        "files": [
                            "http://106.2.230.2:3000/random3000x3000.jpg",
                            "http://106.2.230.2:3000/random4000x4000.jpg"
                        ]
                    },
    }' name="row[other]" cols="50"></textarea>
            </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
